import shutil
import baseTools
import os, sys
import sh
from git import Repo
import git
from flask_cors import CORS
from git import Git


print(os.popen('git ls-remote -h -t git@gitee.com:fsfd/module-manager.git'))

def gitClone(sourceUrl,repo_path):
    git_ssh_identity_file = os.path.expanduser('id_rsa')
    git_ssh_cmd = 'ssh -i %s' %git_ssh_identity_file
    with git.Git().custom_environment(GIT_SSH_COMMAND=git_ssh_cmd):
         new_repo = git.Repo.clone_from(sourceUrl, repo_path)
         return new_repo.tags
        








